//
// Created by buk on 8/30/24.
//

#include "ai_controller.h"
#include "spdlog/spdlog.h"

namespace ai::facial_recognition {

    AIController::AIController()
    {

    }

    AIController::~AIController()
    {


    }

    void AIController::onWebRequest(RequestMessagePtr msg)
    {
        spdlog::info("Entering ai_controller::onWebRequest......");

        spdlog::info(msg->image_file_name);

        this->request_signal_(msg);

        spdlog::info("Exit ai_controller::onWebRequest......");
    }

    void AIController::subscribeRequest(const RequestSignalType::slot_type &request_slot)
{
    request_signal_.connect(request_slot);
}

}